import VueRouter from 'vue-router'
import HomeContainer from './components/tabbar/home.vue'
import MemberContainer from './components/tabbar/member.vue'
import ShopcarContainer from './components/tabbar/shopcar.vue'
import SearchrContainer from './components/tabbar/search.vue'


var router = new VueRouter({
    routes:[
        // 路由的重定向，默认根路径的时候展示home组件
        {path:'/',redirect:'/home'},
        {path: '/home',component: HomeContainer},
        {path: '/member',component: MemberContainer },
        {path: '/shopcar',component: ShopcarContainer },
        {path: '/search',component: SearchrContainer },
    ],
    linkActiveClass: 'mui-active'//覆盖路由默认的高亮的类
})

export default  router